Conversation
Upstream bsc have a new GNUmakefile which is substantially different from the kind that cheribuild expects. Adjust our build rules to suit. Currently we don't build the documentation since that implies lots of Latex dependencies, that aren't strictly necessary to use the bsc compiler
| self.add_required_system_header("tcl/tcl.h", apt="tcl-dev") | ||
| self.make_args.set(PREFIX=self.install_dir) | ||
|
|
||
| def clean(self, **kwargs): |
There was a problem hiding this comment.
It looks like latest version support out-of-source builds, if we can use that instead we can avoid changing clean().
There was a problem hiding this comment.
There's no 'make clean' target in the upstream source - can we make sure that an out-of-source build won't try to call it?
Edit: correction, there is. Let me see why that wasn't working...
| for i in ("autoconf", "gperf", "bison", "flex"): | ||
| self.add_required_system_tool(i, homebrew=i) | ||
| self.add_required_system_header("tcl/tcl.h", apt="tcl-dev") | ||
| self.make_args.set(PREFIX=self.install_dir) |
There was a problem hiding this comment.
If you remove build_in_source_dir = True, the following might be sufficient:
| self.make_args.set(PREFIX=self.install_dir) | |
| self.make_args.set(PREFIX=self.install_dir, BUILDDIR=self.build_dir) |
There was a problem hiding this comment.
It turns out their out-of-tree build is broken. bsc/src/Libraries sets its own BUILDDIR, to be [sourcetree]/build/bsvlib, which is overriden by ours, and then Libraries' wildcarded calls to the 'install' command fail because they're trying to install directories (from the wrong place). I think that's fixable upstream but somewhat messy, so perhaps in-tree is good enough for now? In which case we need to prevent cheribuild calling 'make distclean'
There was a problem hiding this comment.
Maybe I should just remove the distclean workaround and always use git clean for in-source clean. For now using this seems fine.
There was a problem hiding this comment.
I wonder if it works if you set BUILDIR in the environment instead of on the make command line?
|
Is this still needed? |
|
The current version with recent changes is working for me, so closing this PR. |
Upstream bsc have a new GNUmakefile which is substantially different from
the kind that cheribuild expects. Adjust our build rules to suit.
Currently we don't build the documentation since that implies lots of Latex
dependencies, that aren't strictly necessary to use the bsc compiler
Fixes #291